/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.tb_car_info.entity;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.tb_car_class.entity.TbCarClass;
import com.thinkgem.jeesite.modules.tb_certificate_vehicles.entity.TbCertificateVehicles;

/**
 * 车辆管理Entity
 * @author ZhangYangZe
 * @version 2017-05-14
 */
public class TbCarInfo extends DataEntity<TbCarInfo> {
	
	private static final long serialVersionUID = 1L;
	private String carNum;		// 车辆编码（内部码，用于检索，模糊查询，唯一）
	private String carCode;		// 车牌号
	private String carGCode;		// 挂车号
	private String carClass;		// 车辆类型
	private Integer carState;		// 0闲置1运输2停运
	private Integer carRunState;	//出车状态0出车1装货2卸货3回库
	private Double carWeight;		// 承载重量
	private Double carVolumeoftank;		// 罐体容积
	private Integer carWarehouse;		// 车仓数量
	private TbCertificateVehicles tbCertificateVehicles;//车辆的这种证件
	public TbCertificateVehicles getTbCertificateVehicles() {
		return tbCertificateVehicles;
	}

	public void setTbCertificateVehicles(TbCertificateVehicles tbCertificateVehicles) {
		this.tbCertificateVehicles = tbCertificateVehicles;
	}

	private TbCarClass tbCarClass;
	
	
	public TbCarClass getTbCarClass() {
		return tbCarClass;
	}

	public void setTbCarClass(TbCarClass tbCarClass) {
		this.tbCarClass = tbCarClass;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public TbCarInfo() {
		super();
	}

	public TbCarInfo(String id){
		super(id);
	}

	@Length(min=1, max=40, message="车辆编码（内部码，用于检索，模糊查询，唯一）长度必须介于 1 和 40 之间")
	public String getCarNum() {
		return carNum;
	}

	public void setCarNum(String carNum) {
		this.carNum = carNum;
	}
	
	@Length(min=1, max=15, message="车牌号长度必须介于 1 和 15 之间")
	public String getCarCode() {
		return carCode;
	}

	public void setCarCode(String carCode) {
		this.carCode = carCode;
	}
	
	@Length(min=0, max=15, message="挂车号长度必须介于 0 和 15 之间")
	public String getCarGCode() {
		return carGCode;
	}

	public void setCarGCode(String carGCode) {
		this.carGCode = carGCode;
	}
	
	//@NotNull(message="车辆类型不能为空")
	public String getCarClass() {
		return carClass;
	}

	public void setCarClass(String carClass) {
		this.carClass = carClass;
	}
	
	@NotNull(message="0闲置1运输2停运不能为空")
	public Integer getCarState() {
		return carState;
	}

	public void setCarState(Integer carState) {
		this.carState = carState;
	}
	
	@NotNull(message="承载重量不能为空")
	public Double getCarWeight() {
		return carWeight;
	}

	public void setCarWeight(Double carWeight) {
		this.carWeight = carWeight;
	}
	@NotNull(message="罐体容积不能为空")
	public Double getCarVolumeoftank() {
		return carVolumeoftank;
	}

	public void setCarVolumeoftank(Double carVolumeoftank) {
		this.carVolumeoftank = carVolumeoftank;
	}
	
	@NotNull(message="车仓数量不能为空")
	public Integer getCarWarehouse() {
		return carWarehouse;
	}

	public void setCarWarehouse(Integer carWarehouse) {
		this.carWarehouse = carWarehouse;
	}

	public Integer getCarRunState() {
		return carRunState;
	}

	public void setCarRunState(Integer carRunState) {
		this.carRunState = carRunState;
	}
	
}